package com.wdzl.biz;

import com.wdzl.dao.ManagerDao;
import com.wdzl.entity.Manager;

/**
 * 管理员 业务类
 */
public class ManagerBiz {
    private ManagerDao managerDao = new ManagerDao();
    public boolean login(String name,String pass){
        Manager manager = managerDao.findByName(name);
        if(manager==null){
            return false;
        }
        String dbpass = manager.getPass();
        if(dbpass != null && dbpass.equals(pass)){
            return true;
        }
        return false;
    }
}
